package com.zlc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlc.common.utils.PageUtils;
import com.zlc.gulimall.product.entity.AttrEntity;
import com.zlc.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zlc
 * @email sunlightcs@gmail.com
 * @date 2024-09-16 13:43:31
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatelogId(Map<String, Object> params, Long catelogId,Long attrType);

    void saveAttr(AttrVo attrVo);

    List<AttrEntity> getRelationAttrs(Long attrGroupId);

    List<AttrEntity> getByCategoryId(Long catalogId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

